Journal View Model
ViewModel responsible for handling journal entry operations and providing them to the UI.
This ViewModel interacts with the JournalRepository to manage the creation, updating, deletion, and retrieval of journal entries. It exposes a StateFlow of JournalUIState that contains the list of journal entries to be displayed in the UI.
Functions
Link copied to clipboard
Link copied to clipboard
Deletes a journal entry by the entry object itself.
Deletes a journal entry by its ID.
Link copied to clipboard
Link copied to clipboard
Retrieves a journal entry by its ID.
Link copied to clipboard
Updates the title and content of an existing journal entry.